import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {SiteAddComponent} from "./site-add/site-add.component";
import {SiteUpdateComponent} from "./site-update/site-update.component";
import {SitesComponent} from "./sites.component";
import {StudyCodeComponent} from "./study-code/study-code.component";
import {AssignSiteComponent} from "./assign-site/assign-site.component";

const routes: Routes = [
  {
    path: "",
    component: SitesComponent
  },
  {
    path: "add",
    component: SiteAddComponent
  },
  {
    path: "update",
    component: SiteUpdateComponent
  },
  {
    path: "code",
    component: StudyCodeComponent
  },
  {
    path: "assign",
    component: AssignSiteComponent
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
  providers: []
})
export class SitesRoutingModule { }
